package com.gs.wzweather.service.impl;

import com.gs.wzweather.config.datasource.DatasourceKey;
import com.gs.wzweather.config.datasource.TargetDataSource;
import com.gs.wzweather.dao.ForcastReviseDao;
import com.gs.wzweather.entity.ForcastRevise;
import com.gs.wzweather.service.ForcastReviseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@TargetDataSource(DatasourceKey.DB2)
public class ForcastReviseServiceImpl implements ForcastReviseService {

    @Autowired
    ForcastReviseDao reviseDao;

    @Override
    public ForcastRevise queryReviseThree() {
        return reviseDao.queryReviseThree();
    }

    @Override
    public ForcastRevise queryReviseweek() {
        return reviseDao.queryReviseweek();
    }
}
